package cc.uncarbon.module.appapi.web.app;

import cc.uncarbon.framework.core.constant.HelioConstant;

import cc.uncarbon.framework.web.model.request.IdsDTO;
import cc.uncarbon.framework.web.model.response.ApiResult;

import cc.uncarbon.module.appapi.constant.AppApiConstant;
import cc.uncarbon.module.appapi.model.request.AppraiseInsertOrUpdateDTO;
import cc.uncarbon.module.appapi.service.AppraiseService;
import cn.dev33.satoken.annotation.SaCheckPermission;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import jakarta.validation.Valid;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;


/**
 * 后台管理-评价管理接口
 */

@Tag(name = "评价管理接口")
@RequestMapping(AppApiConstant.HTTP_API_URL_PREFIX + "/api/v1")
@RequiredArgsConstructor
@RestController
@Slf4j
public class AppraiseController {



    private final AppraiseService appraiseService;


    @Operation(summary = "新增")
    @PostMapping("/appraises")
    public ApiResult<Void> insert(@RequestBody @Valid AppraiseInsertOrUpdateDTO dto) {
        appraiseService.adminInsert(dto);
        return ApiResult.success();
    }



}
